<?xml version="1.0" encoding="utf-8" ?>
<xsl:stylesheet  version="1.0"
  xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
  <xsl:output method="html" indent="no" />
  <xsl:template match="/">
    <ul class="newslist">
      <xsl:for-each select="/items/item">
        <li class="newsitem">
          <a>
            <xsl:attribute name="href">
		<xsl:text>/Lists/Calendar/DispForm.aspx?ID=</xsl:text>
              <xsl:value-of select="_UIVersionString" />
		<xsl:text>.</xsl:text>
              <xsl:value-of select="EventDate" />
            </xsl:attribute>
            <xsl:call-template name="getDate">
              <xsl:with-param name="dateTime" select="EventDate" />
            </xsl:call-template>
		<xsl:text> - </xsl:text>
            <xsl:value-of select="Title" />
          </a>
        </li>
      </xsl:for-each>
    </ul>
  </xsl:template>

<xsl:template name="getDate">
    <xsl:param name="dateTime" />
    <xsl:value-of select="substring($dateTime,6,2)" />
    <xsl:text>/</xsl:text>
    <xsl:value-of select="substring($dateTime,9,2)" />
    <xsl:text>/</xsl:text>
    <xsl:value-of select="substring($dateTime,1,4)" />
</xsl:template>

</xsl:stylesheet>